package com.sample.api;

import org.springframework.beans.factory.annotation.Autowired;

import com.sample.config.TestProperties;
import com.swak.annotation.Get;
import com.swak.annotation.RestApi;
import com.swak.entity.Result;

/**
 * TestApi.
 * 
 * @author 618lf
 */
@RestApi(path = "/api/test", value = "TestApi")
public class TestApi {

	@Autowired
	TestProperties testProperties;

	@Get("/config")
	public Result<String> configName() {
		return Result.success(testProperties.hashCode() + ":" + testProperties.getName());
	}
}
